package com.lxq.live.listener;

import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import java.util.Arrays;

@Component
@Order(1)
public class MyCommandListener implements CommandLineRunner {
    @Override
    public void run(String... args) {
        if (args != null) {
            if (args.length > 0) {
                System.out.println(Arrays.toString(args));
            }
        }
        System.out.println("LXQ Live后台服务启动成功！");
    }
}
